<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <!-- 确保移动端适配 -->
<link rel="stylesheet" href="{{ url_for('static', filename='css/admin.css') }}">

<title>BD8DUE's Cloud-ScoreBoard</title>
</head>

<body>
    <div id="container" class="container">

        <div id="points" class="points">
            分数:</br>
            <button onclick="clear_db(clear_class='json');"> 清空分数</button></br>
                <div class="fixed-width">
                {% for item in json_db %}
                  {{ item }}号：{{ json_db[item] }}<br>
                {% endfor %}
                      </div>
        </div>
        <div id="operate" class="operate">
            操作记录:</br>
            <button onclick="clear_db(clear_class='pickle');"> 清空记录</button></br>
            <ul>
                {% for i in range(len_op) %}
                <li><!---->
                <div class="operate_list">
                    <!--<li>-->
                        <div class="operate_text">
                            {{op_list[i]}}
                        </div>
                        <button onclick="delete_button(id={{i}});" class="delete">
                            delete
                        </button>
                    <!--</li>-->
                </div>
                </li><!---->
                {% endfor %}
            </ul>
        </div>
      </div></br></br></br></br>

    <div id="confirms" class="confirms">
        <div onclick="confirmed(btn_id=0);" class="confirm_button" id="c0">
            <button class="confirm_button">确认</button>
        </div>
        
        <div onclick="confirmed(btn_id=1);" class="confirm_button" id="c1" style="display: none;">
            <button class="confirm_button">确认(2)</button>
        </div>
        
        <div onclick="confirmed(btn_id=2);" class="confirm_button" id="c2" style="display: none;">
            <button class="confirm_button">确认(3)</button>
        </div>
    </div>

    <script src="{{ url_for('static', filename='js/admin.js') }}"></script>

    <div class="fixed-footer">
        ©2025 BD8DUE <a href="http://beian.miit.gov.cn">蜀ICP备19032024号-1</a>
    </div>
</body>
</html>
